//
//  DHPopPathButton.h
//  BaseProject
//
//  Created by dadahua on 17/5/14.
//  Copyright © 2017年 dahua. All rights reserved.
//

#import "DHPopPathItem.h"
#import <UIKit/UIKit.h>
@class DHPopPathButton;

typedef NS_ENUM(NSUInteger, kDHPathButtonDirection) {

    kDHPathButtonDirectionBottom = 0,
    kDHPathButtonDirectionLeft = 1,
    kDHPathButtonDirectionTop = 2,
    kDHPathButtonDirectionRight = 3,
    
    kDHPathButtonDirectionBottomLeft = 4,
    kDHPathButtonDirectionTopLeft = 5,
    kDHPathButtonDirectionTopRight = 6,
    kDHPathButtonDirectionBottomRight = 7
};


@protocol DHPopPathButtonDelegate <NSObject>

- (void)DHPopPathButton:(DHPopPathButton *)btn didSelectIndex:(NSInteger)index;
- (void)DHPopPathButtonDidSelectCenterBtn;

@end


@interface DHPopPathButton : UIView

//@property (nonatomic, assign) CGPoint clickPoint;
//@property (nonatomic, strong) NSMutableArray<DHPopPathButton *> *items;

+ (instancetype)popWithClickPoint:(CGPoint)centerPoint
                            items:(NSMutableArray<DHPopPathItem *> *)items
                         delegate:(id<DHPopPathButtonDelegate>)delegate;

@end
